<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Date对象</title>
    <script src="js/1.js"></script>
</head>

<body>
    <div id="d1">d1...</div>
    <div id="d2">d2...</div>
</body>　
<script>
    var div1=get("d1")
    // var div1=document.getElementById("d1")
    var div2=get("d2")
    alert(div1.innerHTML)
    alert(div2.innerText)
    //封装方法(获取id对象)---->js架构

</script>
</html>